package com.yangrong.common.exception;

public enum ErrorCodeEnum {
    UNKNOW_EXCEPTION(10000, "系统未知异常"),
    SMS_CODE_EXCEPTION(10001, "验证码获取频率过高，请稍后再试"),
    SMS_CODE_TYPE_EXCEPTION(10002, "发送验证码入参有误，验证码类型错误"),
    LOGIN_PARAMS_EXCEPTION(10003, "登陆信息有误"),
    LOGIN_PARAMS_SMS_CODE_EXCEPTION(10004, "登陆手机验证码错误"),
    LOGIN_FAILED_NO_USER(10005, "用户名不存在"),
    LOGIN_FAILED_ERROR_PASSWORD(10006, "密码错误"),
    LOGIN_FAILED_ERROR_PHONE_ISNULL(10007, "手机号不能为空"),
    LOGIN_FAILED_ERROR_PHONE_NOTHAVE(10008, "手机号未注册");

    private int code;
    private String msg;

    ErrorCodeEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

}
